/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 登录——员工 POST /api/auth/loginEmployee */
export async function apiAuthLoginEmployeeUsingPost({
  body,
  options,
}: {
  body: API.AuthBo;
  options?: { [key: string]: unknown };
}) {
  return request<API.RApiEmployeeLoginVo>('/api/auth/loginEmployee', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 退出——员工 POST /api/auth/loginOut */
export async function apiAuthLoginOutUsingPost({
  options,
}: {
  options?: { [key: string]: unknown };
}) {
  return request<API.RBoolean>('/api/auth/loginOut', {
    method: 'POST',
    ...(options || {}),
  });
}

/** 二级认证-后台 POST /api/auth/openSafe */
export async function apiAuthOpenSafeUsingPost({
  body,
  options,
}: {
  body: API.AuthBoApiAuthOpenSafe;
  options?: { [key: string]: unknown };
}) {
  return request<API.RBoolean>('/api/auth/openSafe', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
